package com.lilinling.yinzhi.user.feign.fallback;

import com.lilinling.common.exception.BizCodeEnum;
import com.lilinling.common.utils.R;
import com.lilinling.yinzhi.user.feign.OrderFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class OrderFeignServiceFallBack implements OrderFeignService {
    @Override
    public R userOrder() {
        log.info("userOrder已熔断...");
        return R.error(BizCodeEnum.TOO_MANY_REQUEST.getCode(),BizCodeEnum.TOO_MANY_REQUEST.getMsg());
    }
}
